import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Counter from '../component/Counter'
import * as CounterActions from '../action/action'


function mapStateToProps(state){
  return {
    num:state.num
  }
}

mapDispatchToProps = (dispatch) =>{
  return bindActionCreators(CounterActions, dispatch)
}

export default connect(mapStateToProps,mapDispatchToProps)(Counter);
